home *** CD-ROM | disk | FTP | other *** search
- Path: news.eunet.fi!fipnet!kone!jsaarinen
- Newsgroups: comp.sys.amiga.programmer
- X-NewsReader: IntuiNews 1.2b (31.7.94)
- References: <DMEpMn.Cvs.0.-s@cs.vu.nl>
- From: "Jyrki Saarinen" <jsaarinen@kone.fipnet.fi>
- Date: Sat, 10 Feb 96 11:45:08 UT
- Comments: Illegal date header - new date added by quicknews
- X-Original-Date: Sat, 10 Feb 96 12:39:29
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: binary
- Subject: Re: 90 degree rotation
- Message-ID: <38232373@kone.fipnet.fi>
-
-
- > Wouldn't it be wise to write the walls in a 90 degree rotated fashion?
-
- Not actually, because floor/ceiling has to be drawn too.
-
- > I mean, not vertically, but horizontally. It might then be possible to
- > write whole longs at once, which is much faster than writing single bytes.
-
- Not actually, since the individual bytes must be "collected"
- to a buffer register and this can be slower.
-
- What is wise, when drawing walls, is to store the wall textures
- 90 degrees rotated. The walls are drawing by scaling vertical
- strips from the texture, now when the texture is rotated 90 degrees,
- it is scanling a horizontal strip.
-
- The scaling loop is very simple:
-
- move.b (a0,d0.w),(a1) ;write pixel
- addx.l d1,d0 ;interpolate
- add.l a2,a1 ;move to the next line
-
- Writing horizontally would be better on the 68040 though,
- I think..
-
- -- _
- a Stellar programmer _ //
- "Amiga - back for the future" \X/
-